package eu.telecom_bretagne.RECRUT.data.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;

/**
 * The persistent class for the archive database table.
 * 
 */
@Entity
@NamedQuery(name = "Archive.findAll", query = "SELECT a FROM Archive a")
public class Archive implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name = "ARCHIVE_ID_GENERATOR", sequenceName = "ARCHIVE_ID_SEQ", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ARCHIVE_ID_GENERATOR")
	private Integer id;

	@Temporal(TemporalType.DATE)
	@Column(name = "date_archive")
	private Date dateArchive;

	private String titre;

	// bi-directional many-to-one association to DossierCandidature
	@ManyToOne
	@JoinColumn(name = "id_dossier")
	private DossierCandidature dossierCandidature;

	// bi-directional many-to-one association to Employe
	@ManyToOne
	@JoinColumn(name = "id_employe")
	private Employe employe;

	public Archive() {	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getDateArchive() {
		return this.dateArchive;
	}

	public void setDateArchive(Date dateArchive) {
		this.dateArchive = dateArchive;
	}

	public String getTitre() {
		return this.titre;
	}

	public void setTitre(String titre) {
		this.titre = titre;
	}

	public DossierCandidature getDossierCandidature() {
		return this.dossierCandidature;
	}

	public void setDossierCandidature(DossierCandidature dossierCandidature) {
		this.dossierCandidature = dossierCandidature;
	}

	public Employe getEmploye() {
		return this.employe;
	}

	public void setEmploye(Employe employe) {
		this.employe = employe;
	}

}